Skip to content

Commit

Permalink
Improve arg parsing for ps commands
Browse files Browse the repository at this point in the history
fixes #34
  • Loading branch information
ipmb committed Feb 25, 2022
1 parent 57cba66 commit 7b4c8e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/ps.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ var psCmd = &cobra.Command{
Use: "ps",
Short: "show running processes",
DisableFlagsInUseLine: true,
Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, args []string) {
ui.StartSpinner()
a, err := app.Init(AppName, UseAWSCredentials, SessionDurationSeconds)
Expand Down Expand Up @@ -217,6 +218,7 @@ apppack -a my-app ps scale worker 1-4 # autoscale worker service from 1 to 4 pr
// execCmd represents the exec command
var psExecCmd = &cobra.Command{
Use: "exec -- <command>",
Args: cobra.MinimumNArgs(1),
Short: "run an interactive command in the remote environment",
Long: `Run an interactive command in the remote environment
Expand Down

0 comments on commit 7b4c8e0

Please sign in to comment.