func noArgs(c *cli.Context) error {
	fmt.Println(c.Args().Present())
	fmt.Println(c.Args().First())
	if c.Args().Present() {
		for i := 0; i < c.NArg(); i++ {
			fmt.Printf("Argument #%d: %s\n", i, c.Args().Get(i))
		}
	}
	return nil
}
Print all arguments
package main
import (
	"fmt"
	"os"
	"github.com/urfave/cli"
)
func main() {
	app := cli.NewApp()
	app.Action = noArgs
	app.Run(os.Args)
}