Borgmatic without arguments/parameters should show usage help instead of starting a backup #262

Open
opened 2019-11-28 18:14:37 +00:00 by varac · 3 comments

I often type borgmatic and hit enter in order to get help on it's subcommands and it always confuses me that it starts a backup instead.
Most applications show their usage help without doing anything when called without arguments/parameters so I propose borgmatic to do the same.

I often type `borgmatic` and hit enter in order to get help on it's subcommands and it always confuses me that it starts a backup instead. Most applications show their usage help without doing anything when called without arguments/parameters so I propose borgmatic to do the same.
Owner

I agree that borgmatic is a little different than most command-line applications in this respect, but I don't think we could make a change like this without breaking a number of existing borgmatic uses (whether manual or automated) that rely on just running borgmatic directly without any arguments. And I think that's kind of the promise of borgmatic in some ways: Once you get your configuration file set up correctly, you don't have to pass any (or very many) arguments to borgmatic on the command-line.

I agree that borgmatic is a little different than most command-line applications in this respect, but I don't think we could make a change like this without breaking a number of existing borgmatic uses (whether manual or automated) that rely on just running `borgmatic` directly without any arguments. And I think that's kind of the promise of borgmatic in some ways: Once you get your configuration file set up correctly, you don't have to pass any (or very many) arguments to borgmatic on the command-line.
witten added the
waiting for response
label 2019-12-12 18:49:36 +00:00

I guess a config option disabled by default would be good for that.

I guess a config option disabled by default would be good for that.
Owner

Yup, that could certainly work!

Yup, that could certainly work!
witten removed the
waiting for response
label 2020-05-06 17:05:49 +00:00
witten added the
good first issue
label 2023-03-29 18:11:21 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#262
No description provided.