Passing arguments to default commands

I would like to know how to define a default command for an action that takes an argument.

See my example below:

name: "My action"
description: "Testing out Github Actions!"
inputs:
  command:
    description: "Command to run within Docker container"
    required: true
    default: display-time --format "Y-m-d H:i:s"
runs:
  using: 'docker'
  image: 'Dockerfile'
  args:
    - ${{ inputs.command }}

The Dockerfile exposes the ENTRYPOINT, and the action.yml file connects the action to the Docker container, passing the default command of display-time with the --format argument and value.

The problem I’m having is that what actually gets executed within the Docker container is the following:

/usr/local/bin/entrypoint 'display-time --format "Y-m-d H:i:s"'

Notice how the whole command, including the argument(s), are surrounded by quotes? This obviously breaks the execution, because the entire quoted string is treated as the command, rather than the expected behaviour of using the first space-separated string as the command, and the other space-separated strings as the command’s arguments.

There must be something in the action.yml format that I’m getting wrong, so please can someone point me in the right direction?

Cheers!

Args are passed as an array into the entrypoint so they are quoted.  I don’t think there is a way in an action to request the user provide an command or entrypoint and have that passed directly through.