question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider making commands be commands instead of flags

See original GitHub issue

taskbook uses flags for all of the actions it can do:

$ tb --task hello world
$ tb --check 1

These commands do not compose as flags would imply in a CLI, so they should probably just be commands and not flags:

$ tb task hello world
$ tb check 1

This makes it a lot easier to type stuff out, and more coherent with how other CLI apps work.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:14
  • Comments:5

github_iconTop GitHub Comments

1reaction
colingmcommented, Aug 10, 2018

it would still be reasonable to have aliases for commands too similar to how npm has both npm install and npm i

0reactions
anirathcommented, Dec 20, 2019

taskbook uses flags for all of the actions it can do:

$ tb --task hello world
$ tb --check 1

These commands do not compose as flags would imply in a CLI, so they should probably just be commands and not flags:

$ tb task hello world
$ tb check 1

This makes it a lot easier to type stuff out, and more coherent with how other CLI apps work.

I definitely agree with this request. Using commands, as opposed to flags, would seem to make more sense.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding and Using Makefile Flags - Earthly Blog
First, just like any other makefile variable, these flags can be overridden when invoking make from the command line.
Read more >
Is there a difference between a command line flag and a ...
"Flags" specifically, are Boolean arguments, set by the mere inclusion of the command-line argument, with no additional data needed or ...
Read more >
How can I/Should I default flags when running a command?
Creating a function or a ~/bin/ script to replace a command will need you to reference the command directly.
Read more >
Instead of Execution (GNU make)
With the ' -t ' flag, make ignores the recipes in the rules and uses (in effect) the command touch for each target...
Read more >
Git Command Overview with Useful Flags and Aliases
This post is a short guide to making your git usage a little more efficient. We're not going to cover how git works...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found